

<script>
    new Vue({
        el: '#app',
        data: {
            emp: {
                employeeName: "",
                employeeId: "",
                department: "",
                post: "",
                mobilePhone: "",
                cornopean: "",
                username: "",
                password: "",
                email: "",
            }
        },
        methods: {
            createAccount: function () {
                //发送get请求
                this.$http.post('/employee',
                    this.emp).then(function (res) {
                    console.log(res.status);
                }, function () {
                    console.log('请求失败处理');
                });
            }
        }
    });
</script>
